package alvarodelrosal.chat.client.chataction.local;

import alvarodelrosal.chat.client.chataction.remote.ChatName;
import java.util.List;

public class ChatMyChats implements ChatLocalAction {

    @Override
    public String getName() {
        return "MyChats";
    }

    @Override
    public void doAction(List<String> parameters) {
        for(String chat : parameters) {
            ChatName name = new ChatName();
            List<String> parameter = name.prepareParameters(chat);
            name.doAction(parameter);
        }
    }
    
}
